package com.hao.staservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author chenwenhao
 * @version 1.0.0
 * @ClassName UcenterClient.java
 * @createTime 2021/1/27,19:52
 * @Description
 */
@FeignClient("service-ucenter")
@Component
public interface UcenterClient {

    /**
     * 远程调用，计算某一天的注册人数
     *
     * @param day 一天
     * @return {@link Integer}
     */
    @GetMapping("/educenter/member/countRegister/{day}")
    public Integer countRegister(@PathVariable("day") String day);
}
